home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Workbench / ToolManager / Source / Docs / DMakefile < prev    next >
Makefile  |  1998-08-10  |  1KB  |  60 lines

  1. #
  2. # DMakefile V3.1
  3. #
  4. # Makefile for ToolManager 3.1 (Documentation)
  5. #
  6. # Copyright (C) 1990-98 Stefan Becker
  7. #
  8. # This source code is for educational purposes only. You may study it
  9. # and copy ideas or algorithms from it for your own projects. It is
  10. # not allowed to use any of the source codes (in full or in parts)
  11. # in other programs. Especially it is not allowed to create variants
  12. # of ToolManager or ToolManager-like programs from this source code.
  13. #
  14. LANGS   = english dansk deutsch italiano srpski svenska
  15. HELPDIR = //Help/
  16. DOCDIR  = //Docs/
  17.  
  18. #
  19. TEX     = tex
  20. TINDEX  = texindex
  21. MINFO   = makeinfo
  22.  
  23. TEXS    = $(LANGS:"*":"*.tex")
  24. GUIDED  = $(LANGS:"*":"$(HELPDIR)*")
  25. GUIDES  = $(LANGS:"*":"$(HELPDIR)*/ToolManager.guide")
  26. DOCD    = $(LANGS:"*":"$(DOCDIR)*")
  27. TXTS    = $(LANGS:"*":"$(DOCDIR)*/ToolManager.txt")
  28. DVIS    = $(LANGS:"*":"$(DOCDIR)*/ToolManager.dvi")
  29.  
  30. all : guide doc
  31.  
  32. guide : $(GUIDED) $(GUIDES)
  33.  
  34. $(GUIDES) : $(TEXS)
  35.       $(MINFO) --amiga-39 -o %(left) %(right)
  36.  
  37. $(GUIDED) : $(GUIDED)
  38.       MakeDir %(left)
  39.  
  40. doc : $(DOCD) $(TXTS)
  41.  
  42. $(TXTS) : $(TEXS)
  43.       $(MINFO) --amiga-39 --no-headers -o %(left) %(right)
  44.  
  45. $(DOCD) : $(DOCD)
  46.       MakeDir %(left)
  47.  
  48. dvi : $(DOCD) $(DVIS)
  49.  
  50. $(DVIS) : $(TEXS)
  51.       $(TEX) %(right)
  52.       $(TINDEX) %(right:"*.tex":"*.cp")
  53.       $(TEX) %(right)
  54.       -Delete *.(aux|cp|cps|fn|ky|log|pg|toc|tp|vr) QUIET
  55.       -Delete %(left)
  56.       Rename %(right:"*.tex":"*.dvi") %(left)
  57.  
  58. clean   :
  59.       @Echo "Nothing to clean"
  60.